package com.totem.order.api;

import com.totem.base.model.PageVO;
import com.totem.base.model.Result;
import com.totem.order.vo.*;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

@Tag(name="钱包服务", description="钱包支付,流水查询等")
public interface ITWalletServiceApi {
    @Operation(summary="支付商品订单")
    @PostMapping("/wallet/goods/payment")
    @ResponseBody
    Result<GoodsPaymentVO> goodsPayment(@RequestBody @Valid GoodsPaymentVO vo);

    @Operation(summary="支付认购订单")
    @PostMapping("/wallet/subscribe/payment")
    @ResponseBody
    Result<SubscribePaymentVO> subscribePayment(@RequestBody @Valid SubscribePaymentVO vo);
}
